package cn.edu.scau.cmi.ema.service;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Food;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface FoodService {

	public Food saveFood(Food food);

	public Set<Food> loadFoods();

	public Set<Food> loadReferenceFoods(Set<Food> foods);

	public Set<Food> loadFoodsByIdSet(Set<Integer> foodsId);

	public Map<String, ?> loadFoodObjectReferencedSet(Food food);

	public Map<String, ?> loadFoodClassReferencedSet(Food food);

	public void deleteFood(Food food);

	public void deleteFoods(Set<Integer> deleteFoodsId);

	public List<Food> findAllFoods(Integer startResult, Integer maxRows);

	public Food findFoodByPrimaryKey(Integer id);

	public Integer countFoods();

	public Integer countFoods(CmiPagination page);

	public Integer countFoodsByName(String queryName);

	public Integer countFoodsByDetachedCriteria(CmiPagination page);

}
